package com.ts.application.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 小张在这里加了一个批注 ===>A
 * AAAAAAAAAAAAAAAAAAAAAAAAA
 * BBBBBBBBBBBBBBBBBBBBBBBBBBB
 * AAAAAAAAAAAAAAAAAAAAAAAAAAAA111111111111111111111111111
 * DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
 * CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
 */
@RestController
public class UserController {

    @GetMapping("/user")
    public String list() {
        return "userList";
    }

    @GetMapping("/userPage")
    public String userPage() {
        return "userPage";
    }

    // 小李 ---》最近追加内容 ===>B
    @PostMapping("/user")
    public String addUser() {
        return "addUser";
    }
    // 小张
    @PostMapping("/updateUser")
    public String updateUser() {
        return "updateUser";
    }
}
